
#include <iostream>

class Test {
    static Test *ptr;

    Test()
    {
        //Test::ptr = NULL;    
    }

public:
    static Test *instance()
    {
        ptr = new Test();
    }
};

Test *Test::ptr = NULL;

main()
{
    Test *ptr = Test::instance();
}
